package cn.ml.sheJiMoShi.factory.abstract1;

public class Client {
    public static void main(String[] args) {

        System.out.println("#############小米系列产品#################");
        XiaoMiFactory xiaoMiFactory = new XiaoMiFactory();
        IPhoneProduct iPhoneProduct = xiaoMiFactory.iphoneProduct();
        iPhoneProduct.callup();
        iPhoneProduct.sendSMS();

        IRouterProduct iRouterProduct = new XiaoMiRouter();
        iRouterProduct.start();
        iRouterProduct.openWifi();
    }
}
